/*
 * @Author: songxiang songxiang0806@qq.com
 * @Date: 2025-08-21 14:40:14
 * @LastEditors: songxiang songxiang0806@qq.com
 * @LastEditTime: 2025-08-26 18:44:37
 * @FilePath: \supermap-webgl\src\store\top-menus\top-menus.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineStore } from 'pinia'
import { ref } from 'vue'

/**
 * 顶部菜单Store
 */
export const useTopMenusStore = defineStore('use-top-menus', () => {
  const activeMenu = ref('')
  const setMenu = (menu: string) => {
    activeMenu.value = menu
  }
  return { activeMenu, setMenu }
})
